<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddCoinsettingToLevelTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('setting_user_level', function (Blueprint $table) {
            $table->double('chat_coin_setting', 5, 2)->default(0.00)->comment('私聊最大收费')->after('icon');
            $table->double('voice_coin_setting', 5, 2)->default(0.00)->comment('语音最大收费')->after('icon');
            $table->double('video_coin_setting', 5, 2)->default(0.00)->comment('视频最大收费')->after('icon');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('setting_user_level', function (Blueprint $table) {
            //
        });
    }
}
